#include <iostream>
#include <iomanip>
using namespace std;
long c=2;
long jiecheng (long d)
{
    if(d==0)
    {
        cout << "1111" << endl;
    }
    long b=1;
    for(long a=2;a<d+1;)
    {
        b=b*a;
        a++;
    }
    return b;
}
int main()
{
    cout<<jiecheng (10)<<endl;
    cout<<jiecheng (3)<<endl;
}























